home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #11 / Amiga Plus CD - 2002 - No. 11.iso / Tools / Development / PowerD / powerd / modules.lha / modules / devices / newstyle.m < prev    next >
Encoding:
Text File  |  2002-05-26  |  2.4 KB  |  63 lines

  1. /*------------------------------------------------------------------------*/
  2. /*
  3.  * $Id: newstyle.h 1.1 1997/05/15 18:53:15 heinz Exp $
  4.  *
  5.  * Support header for the New Style Device standard
  6.  *
  7.  * (C)1996-1997 by Amiga International, Inc.
  8.  *
  9.  */
  10. /*------------------------------------------------------------------------*/
  11. /*
  12.  *  At the moment there is just a single new style general command:
  13.  */
  14. CONST NSCMD_DEVICEQUERY=$4000
  15.  
  16. OBJECT NSDeviceQueryResult
  17.   DevQueryFormat:ULONG,              /* this is type 0               */
  18.   SizeAvailable:ULONG,               /* bytes available              */
  19.   DeviceType:UWORD,                  /* what the device does         */
  20.   DeviceSubType:UWORD,               /* depends on the main type     */
  21.   SupportedCommands:PTR TO UWORD     /* 0 terminated list of cmd's   */
  22.  
  23. CONST NSDEVTYPE_UNKNOWN=0,   /* No suitable category, anything */
  24.  NSDEVTYPE_GAMEPORT=1,    /* like gameport.device */
  25.  NSDEVTYPE_TIMER=2,    /* like timer.device */
  26.  NSDEVTYPE_KEYBOARD=3,    /* like keyboard.device */
  27.  NSDEVTYPE_INPUT=4,    /* like input.device */
  28.  NSDEVTYPE_TRACKDISK=5,    /* like trackdisk.device */
  29.  NSDEVTYPE_CONSOLE=6,    /* like console.device */
  30.  NSDEVTYPE_SANA2=7,    /* A >=SANA2R2 networking device */
  31.  NSDEVTYPE_AUDIO=8,    /* like audio.device */
  32.  NSDEVTYPE_CLIPBOARD=9,    /* like clipboard.device */
  33.  NSDEVTYPE_PRINTER=10,   /* like printer.device */
  34.  NSDEVTYPE_SERIAL=11,   /* like serial.device */
  35.  NSDEVTYPE_PARALLEL=12   /* like parallel.device */
  36. /*------------------------------------------------------------------------*/
  37. /* The following defines should really be part of device specific
  38.  * includes. So we protect them from being redefined.
  39.  */
  40. #ifndef NSCMD_TD_READ64
  41. /*
  42.  *  An early new style trackdisk like device can also return this
  43.  *  new identifier for TD_GETDRIVETYPE. This should no longer
  44.  *  be the case though for newly written or updated NSD devices.
  45.  *  This identifier is ***OBSOLETE***
  46.  */
  47. CONST DRIVE_NEWSTYLE=$4E535459,      /* 'NSTY' */
  48. /*
  49.  *  At the moment, only four new style commands in the device
  50.  *  specific range and their ETD counterparts may be implemented.
  51.  */
  52.  NSCMD_TD_READ64=$C000,
  53.  NSCMD_TD_WRITE64=$C001,
  54.  NSCMD_TD_SEEK64=$C002,
  55.  NSCMD_TD_FORMAT64=$C003,
  56.  NSCMD_ETD_READ64=$E000,
  57.  NSCMD_ETD_WRITE64=$E001,
  58.  NSCMD_ETD_SEEK64=$E002,
  59.  NSCMD_ETD_FORMAT64=$E003
  60. #endif
  61. /* NSCMD_TD_READ64 */
  62. /*------------------------------------------------------------------------*/
  63.